package main

import "github.com/gin-gonic/gin"

func main() {
	//分组路由
	router := gin.Default()
	//创建V1组
	v1 := router.Group("/v1")
	{
		//url = /v1/login
		v1.POST("/login", login2)
	}

	v2 := router.Group("/v2")
	{
		//url = /v2/login
		v2.POST("/login", login2)
	}

	router.Run(":8081")
}

func login2(c *gin.Context) {

}
